/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.quickorm.sample.daoimpl.support;

import com.quickorm.core.support.QuickormDaoSupport;
import java.util.List;

/**
 *
 * @author aaa
 */
public abstract class BaseDaoImpl extends QuickormDaoSupport {

    public <T> T get(Class<T> entityClass, Object id) {
        return super.getQuickormTemplate().get(entityClass, id);
    }

    public void save(Object t) {
        super.getQuickormTemplate().save(t);
    }

    public void saveBatch(List tList) {
        super.getQuickormTemplate().saveBatch(tList);
    }

    public void update(Object t) {
        super.getQuickormTemplate().update(t);
    }

    public <T> void delete(Class<T> entityClass, Object id) {
        super.getQuickormTemplate().delete(entityClass, id);
    }

    public <T> List<T> getList(Class<T> entityClass) {
        return super.getQuickormTemplate().getList(entityClass);
    }
}
